<%@ page import="aqv.Project" %>



<div class="fieldcontain ${hasErrors(bean: projectInstance, field: 'name', 'error')} required">
	<label for="name">
		<g:message code="project.name.label" default="Name" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="name" required="" value="${projectInstance?.name}"/>

</div>

<div class="fieldcontain ${hasErrors(bean: projectInstance, field: 'description', 'error')} required">
	<label for="description">
		<g:message code="project.description.label" default="Description" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="description" required="" value="${projectInstance?.description}"/>

</div>

<div class="fieldcontain ${hasErrors(bean: projectInstance, field: 'begin', 'error')} required">
	<label for="begin">
		<g:message code="project.begin.label" default="Begin" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="begin" precision="day"  value="${projectInstance?.begin}"  />

</div>

<div class="fieldcontain ${hasErrors(bean: projectInstance, field: 'end', 'error')} required">
	<label for="end">
		<g:message code="project.end.label" default="End" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="end" precision="day"  value="${projectInstance?.end}"  />

</div>

<div class="fieldcontain ${hasErrors(bean: projectInstance, field: 'budget', 'error')} required">
	<label for="budget">
		<g:message code="project.budget.label" default="Budget" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="budget" type="number" value="${projectInstance.budget}" required=""/>

</div>

<div class="fieldcontain ${hasErrors(bean: projectInstance, field: 'politician', 'error')} required">
	<label for="politician">
		<g:message code="project.politician.label" default="Politician" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="politician" name="politician.id" from="${aqv.Politician.list()}" optionKey="id" required="" value="${projectInstance?.politician?.id}" class="many-to-one"/>

</div>

